home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010921-20020314
/
000202_fdc@watsun.cc.columbia.edu_Wed Dec 5 09:26:55 EST 2001.msg
< prev
next >
Wrap
Text File
|
2002-03-13
|
2KB
|
44 lines
Article: 13024 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: UUCP lockfile name for SVR4
Date: 5 Dec 2001 00:52:58 GMT
Organization: Columbia University
Lines: 28
Message-ID: <9ujr5a$17p$1@newsmaster.cc.columbia.edu>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1007513578 1273 128.59.39.2 (5 Dec 2001 00:52:58 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 5 Dec 2001 00:52:58 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13024
System V R4 creates UUCP lockfile names that are based on the device
number rather than the device name, to sidestep issues about multiple
names for the same device, symlinks, etc. The code in Kermit is:
stat(ttdev,&devbuf);
...
sprintf(lockfil,"LK.%03d.%03d.%03d", /* safe */
major(devbuf.st_dev), /* inode */
major(devbuf.st_rdev), /* major device number */
minor(devbuf.st_rdev)); /* minor device number */
Unfortunately I don't recall where this code came from, but it dates
from before C-Kermit 5A was released. As you can see, one of the lines
has a comment that does not agree with the code:
major(devbuf.st_dev), /* inode */
Is the code wrong, or the comment? I suspect it's the comment but
unfortunately, I can't seem to locate a definitive reference for the SVR4
lockfile name format (for example, it is not discussed in SVID), nor sample
"official" SVR4 code (e.g. from cu or uucp). Can anybody supply these?
And/or verify that Kermit properly interlocks with cu on (say) Solaris or
SINIX?
Thanks!
- Frank